GXPostScriptProcessShape
QuickDraw GX sends theGXPostScriptProcessShape
message when converting a shape object into PostScript. You can override theGXPostScriptProcessShape
message to exercise imaging control for a shape. Your override of theGXPostScriptProcessShape
message must match the following formal declaration:
OSErr MyPostScriptProcessShape (gxShape aShape, long count, gxTransform list[]);
aShape
- The shape object that is to be printed.
count
- The number of transform objects in the transform list.
list
- A list of transforms through which the shape needs to be mapped when converted to PostScript.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXPostScriptProcessShape
message to provide you with imaging control for individual shapes.The default implementation of this message takes a shape and produces the PostScript code needed to image the shape.
You can override this message to change the way that a shape is imaged on a PostScript device.
- Note
- QuickDraw GX internally tracks the state of the printer. If you override this message, then QuickDraw GX's version of the printer's state can become out of sync with the hardware. This means that if you override this message for any shapes, you need to override it for all shapes.
![]()
SPECIAL CONSIDERATIONS
You can modify the shape or the transform list before forwarding theGXPostScriptProcessShape
message, or you can totally override theGXPostScriptProcessShape
message to change the PostScript code that is generated for the shape.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help